package com.colorfruit.admin.business.dao;

import com.colorfruit.admin.pojo.entity.FoundationSysUser;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

public interface FoundationSysUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(FoundationSysUser record);

    int insertSelective(FoundationSysUser record);

    FoundationSysUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(FoundationSysUser record);

    int updateByPrimaryKey(FoundationSysUser record);

    FoundationSysUser getUserByOpenId(String openId);

    int updateWalletAmount(@Param("userId") String userId, @Param("amount") BigDecimal amount);

    int updateUserInfo(@Param("userId") String userId,
                       @Param("phone") String phone,
                       @Param("userName") String userName);


}